﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ArtLand.OA.Project.SystemMgr.SysModelMgr" Codebehind="SysModelMgr.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Grid1" />
    <ext:Grid ID="Grid1" Title="系统模块管理" ShowBorder="false" runat="server" EnableCheckBoxSelect="true"
        DataKeyNames="Mid" OnRowDataBound="Grid1_RowDataBound" ShowHeader="false" OnRowCommand="Grid1_RowCommand"
        EnableRowNumber="True" EnableTextSelection="true">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="添加模块" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:ToolbarSeparator>
                    </ext:ToolbarSeparator>
                    <ext:Button ID="Button1" Text="设定模块权限" Icon="Key" OnClick="SetKey" runat="server">
                    </ext:Button>
                    <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                    </ext:ToolbarSeparator>
                    <ext:DropDownList runat="server" ID="Drp_Seltop" AutoPostBack="true" OnSelectedIndexChanged="Drpsel">
                    </ext:DropDownList>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField Width="120px" DataField="Icon" DataFormatString="{0}" HeaderText="标识"
                Hidden="true" />
            <ext:BoundField Width="150px" DataField="ModeuleName" DataFormatString="{0}" HeaderText="名称"
                DataSimulateTreeLevelField="TreeLevel" />
            <ext:BoundField Width="120px" DataField="Keyword" DataFormatString="{0}" HeaderText="标识" />
            <ext:BoundField Width="250px" DataField="FunctionPage" DataFormatString="{0}" HeaderText="链接地址" />
            <ext:CheckBoxField Width="60px" RenderAsStaticField="true" DataField="Isuser" Hidden="true" HeaderText="是否显示" />
            <ext:BoundField Width="60px" DataField="Orderid" HeaderText="排序号" />
            <ext:WindowField ColumnID="myWindowField12" Width="100px" WindowID="Window2" Text="添加子模块"
                DataTextFormatString="{0}" DataIFrameUrlFields="Mid" DataIFrameUrlFormatString="SysModelMgrChange.aspx?pid={0}"
                DataWindowTitleField="ModeuleName" DataWindowTitleFormatString="添加子模块 - {0}"
                HtmlEncode="true" HtmlEncodeFormatString="true" Icon="BulletAdd" TextAlign="Center" />
            <ext:WindowField ColumnID="myWindowField" Width="67px" WindowID="Window1" Text="修改"
                DataTextFormatString="{0}" DataIFrameUrlFields="Mid" DataIFrameUrlFormatString="SysModelMgrChange.aspx?id={0}"
                DataWindowTitleField="ModeuleName" DataWindowTitleFormatString="修改 - {0}" HtmlEncode="true"
                HtmlEncodeFormatString="true" Icon="BulletEdit" TextAlign="Center" />
            <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" ColumnID="mid" Width="70px"
                CommandName="Del" Text="删除" Icon="BulletDelete" TextAlign="Center" />
            <ext:WindowField ColumnID="myWindowField33" Width="100px" WindowID="Window3" Text="设定权限"
                DataTextFormatString="{0}" DataIFrameUrlFields="Mid" DataIFrameUrlFormatString="SysModelPer.aspx?mid={0}"
                DataWindowTitleField="ModeuleName" DataWindowTitleFormatString="设定权限 - {0}" HtmlEncode="true"
                HtmlEncodeFormatString="true" Icon="BulletKey" TextAlign="Center" />
        </Columns>
    </ext:Grid>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="550px" Height="500px" Icon="ApplicationEdit">
    </ext:Window>
    <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="550px" Height="500px" Icon="ApplicationAdd">
    </ext:Window>
    <ext:Window ID="Window3" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="550px" Height="350px" Icon="Key">
    </ext:Window>
    </form>
</body>
</html>
